#!/bin/bash

set -e

SCRIPTS=$(dirname "$(realpath "$0")")
ROOT=$(git rev-parse --show-toplevel)

cd "${ROOT}"
"${SCRIPTS}/tx" --token "$TX_TOKEN" pull --force

"${SCRIPTS}/filter-locale-changes"

cd "${ROOT}/cms"
django-admin compilemessages
